  /**
   * Generate time : 2016-09-04 23:48:21
   * Version : 1.0.1.V20070717
   */
package com.baosight.sczx.zm.cp.domain;

import com.baosight.iplat4j.util.NumberUtils;

import java.math.BigDecimal;

import com.baosight.iplat4j.core.ei.EiColumn;
import com.baosight.iplat4j.ep.DaoEPBase;

import java.util.HashMap;
import java.util.Map;

import com.baosight.iplat4j.util.StringUtils;
/**
 * ZMCPProducePlanGLAZ 
 * table comment : 管路安装计划上报信息 
 */
public class ZMCPProducePlanGLAZ extends DaoEPBase {

	private String fdKeyId = " ";		/* 主键*/
	private String fdDepartmentId = " ";		/* 施工部门ID*/
	private String fdDepartment = " ";		/* 施工部门*/
	private String fdProfessionalplanId = " ";		/* 专业计划ID*/
	private String fdProduceplanId = " ";		/* 生产计划ID*/
	private String fdPlanYear = " ";		/* 计划年份*/
	private String fdPlanMonth = " ";		/* 计划月份*/
	private String fdRemarks = " ";		/* 备注*/
	private String fdDd = " ";		/* 地点*/
	private String fdGj = " ";		/* 管径（mm)*/
	private BigDecimal fdPscd = new BigDecimal("0");		/* 铺设长度(m)*/
	private BigDecimal fdAzcd = new BigDecimal("0");		/* 安装长度(m)*/
	private String fdGdlx = " ";		/* 管道类型*/
	private String fdAzdw = " ";		/* 安装队伍*/
	private String fdGclx = " ";		/* 管材类型*/
	private String fdCreateDepartmentId = " ";		/* 编制部门ID*/
	private String fdCreateDepartment = " ";		/* 编制部门*/
	private String fdCreatorId = " ";		/* 编制人ID*/
	private String fdCreator = " ";		/* 编制人*/
	private String fdAzdwId = " ";		/* 安装队伍ID*/
	private String fdCreattime = " ";	/* 创建时间*/

	/**
	 * initialize the metadata 
	 */
	public void initMetaData() {
		EiColumn eiColumn;
		
	eiColumn = new EiColumn("fdKeyId");
	eiColumn.setPrimaryKey(true);
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("主键");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdDepartmentId");
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("施工部门ID");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdDepartment");
	eiColumn.setFieldLength(50);	
	eiColumn.setDescName("施工部门");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdProfessionalplanId");
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("专业计划ID");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdProduceplanId");
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("生产计划ID");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdPlanYear");
	eiColumn.setFieldLength(4);	
	eiColumn.setDescName("计划年份");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdPlanMonth");
	eiColumn.setFieldLength(2);	
	eiColumn.setDescName("计划月份");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdRemarks");
	eiColumn.setFieldLength(500);	
	eiColumn.setDescName("备注");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdDd");
	eiColumn.setFieldLength(50);	
	eiColumn.setDescName("地点");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdGj");
	eiColumn.setFieldLength(20);	
	eiColumn.setDescName("管径（mm)");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdPscd");
	eiColumn.setType("N");
	eiColumn.setScaleLength(4);
	eiColumn.setFieldLength(12);
	eiColumn.setDescName("铺设长度(m)");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdAzcd");
	eiColumn.setType("N");
	eiColumn.setScaleLength(4);
	eiColumn.setFieldLength(12);
	eiColumn.setDescName("安装长度(m)");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdGdlx");
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("管道类型");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdAzdw");
	eiColumn.setFieldLength(100);	
	eiColumn.setDescName("安装队伍");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdGclx");
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("管材类型");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdCreateDepartmentId");
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("编制部门ID");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdCreateDepartment");
	eiColumn.setFieldLength(100);	
	eiColumn.setDescName("编制部门");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdCreatorId");
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("编制人ID");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdCreator");
	eiColumn.setFieldLength(20);	
	eiColumn.setDescName("编制人");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdAzdwId");
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("安装队伍ID");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdCreattime");
	eiColumn.setFieldLength(50);	
	eiColumn.setDescName("创建时间");
	eiMetadata.addMeta(eiColumn);
	

	}
	/**
	 * the constructor
	 */
	public ZMCPProducePlanGLAZ() {
		initMetaData();
	}
	
	/**
	 * get the fdKeyId - 主键
	 * @return the fdKeyId
	 */
	public String getFdKeyId() {
		return this.fdKeyId;
	}
	
	/**
	 * set the fdKeyId - 主键
	 */
	public void setFdKeyId(String fdKeyId) {
		this.fdKeyId = fdKeyId;
	}
	
	/**
	 * get the fdDepartmentId - 施工部门ID
	 * @return the fdDepartmentId
	 */
	public String getFdDepartmentId() {
		return this.fdDepartmentId;
	}
	
	/**
	 * set the fdDepartmentId - 施工部门ID
	 */
	public void setFdDepartmentId(String fdDepartmentId) {
		this.fdDepartmentId = fdDepartmentId;
	}
	
	/**
	 * get the fdDepartment - 施工部门
	 * @return the fdDepartment
	 */
	public String getFdDepartment() {
		return this.fdDepartment;
	}
	
	/**
	 * set the fdDepartment - 施工部门
	 */
	public void setFdDepartment(String fdDepartment) {
		this.fdDepartment = fdDepartment;
	}
	
	/**
	 * get the fdProfessionalplanId - 专业计划ID
	 * @return the fdProfessionalplanId
	 */
	public String getFdProfessionalplanId() {
		return this.fdProfessionalplanId;
	}
	
	/**
	 * set the fdProfessionalplanId - 专业计划ID
	 */
	public void setFdProfessionalplanId(String fdProfessionalplanId) {
		this.fdProfessionalplanId = fdProfessionalplanId;
	}
	
	/**
	 * get the fdProduceplanId - 生产计划ID
	 * @return the fdProduceplanId
	 */
	public String getFdProduceplanId() {
		return this.fdProduceplanId;
	}
	
	/**
	 * set the fdProduceplanId - 生产计划ID
	 */
	public void setFdProduceplanId(String fdProduceplanId) {
		this.fdProduceplanId = fdProduceplanId;
	}
	
	/**
	 * get the fdPlanYear - 计划年份
	 * @return the fdPlanYear
	 */
	public String getFdPlanYear() {
		return this.fdPlanYear;
	}
	
	/**
	 * set the fdPlanYear - 计划年份
	 */
	public void setFdPlanYear(String fdPlanYear) {
		this.fdPlanYear = fdPlanYear;
	}
	
	/**
	 * get the fdPlanMonth - 计划月份
	 * @return the fdPlanMonth
	 */
	public String getFdPlanMonth() {
		return this.fdPlanMonth;
	}
	
	/**
	 * set the fdPlanMonth - 计划月份
	 */
	public void setFdPlanMonth(String fdPlanMonth) {
		this.fdPlanMonth = fdPlanMonth;
	}
	
	/**
	 * get the fdRemarks - 备注
	 * @return the fdRemarks
	 */
	public String getFdRemarks() {
		return this.fdRemarks;
	}
	
	/**
	 * set the fdRemarks - 备注
	 */
	public void setFdRemarks(String fdRemarks) {
		this.fdRemarks = fdRemarks;
	}
	
	/**
	 * get the fdDd - 地点
	 * @return the fdDd
	 */
	public String getFdDd() {
		return this.fdDd;
	}
	
	/**
	 * set the fdDd - 地点
	 */
	public void setFdDd(String fdDd) {
		this.fdDd = fdDd;
	}
	
	/**
	 * get the fdGj - 管径（mm)
	 * @return the fdGj
	 */
	public String getFdGj() {
		return this.fdGj;
	}
	
	/**
	 * set the fdGj - 管径（mm)
	 */
	public void setFdGj(String fdGj) {
		this.fdGj = fdGj;
	}
	
	/**
	 * get the fdPscd - 铺设长度(m)
	 * @return the fdPscd
	 */
	public BigDecimal getFdPscd() {
		return this.fdPscd;
	}
	
	/**
	 * set the fdPscd - 铺设长度(m)
	 */
	public void setFdPscd(BigDecimal fdPscd) {
		this.fdPscd = fdPscd;
	}
	
	/**
	 * get the fdAzcd - 安装长度(m)
	 * @return the fdAzcd
	 */
	public BigDecimal getFdAzcd() {
		return this.fdAzcd;
	}
	
	/**
	 * set the fdAzcd - 安装长度(m)
	 */
	public void setFdAzcd(BigDecimal fdAzcd) {
		this.fdAzcd = fdAzcd;
	}
	
	/**
	 * get the fdGdlx - 管道类型
	 * @return the fdGdlx
	 */
	public String getFdGdlx() {
		return this.fdGdlx;
	}
	
	/**
	 * set the fdGdlx - 管道类型
	 */
	public void setFdGdlx(String fdGdlx) {
		this.fdGdlx = fdGdlx;
	}
	
	/**
	 * get the fdAzdw - 安装队伍
	 * @return the fdAzdw
	 */
	public String getFdAzdw() {
		return this.fdAzdw;
	}
	
	/**
	 * set the fdAzdw - 安装队伍
	 */
	public void setFdAzdw(String fdAzdw) {
		this.fdAzdw = fdAzdw;
	}
	
	/**
	 * get the fdGclx - 管材类型
	 * @return the fdGclx
	 */
	public String getFdGclx() {
		return this.fdGclx;
	}
	
	/**
	 * set the fdGclx - 管材类型
	 */
	public void setFdGclx(String fdGclx) {
		this.fdGclx = fdGclx;
	}
	
	/**
	 * get the fdCreateDepartmentId - 编制部门ID
	 * @return the fdCreateDepartmentId
	 */
	public String getFdCreateDepartmentId() {
		return this.fdCreateDepartmentId;
	}
	
	/**
	 * set the fdCreateDepartmentId - 编制部门ID
	 */
	public void setFdCreateDepartmentId(String fdCreateDepartmentId) {
		this.fdCreateDepartmentId = fdCreateDepartmentId;
	}
	
	/**
	 * get the fdCreateDepartment - 编制部门
	 * @return the fdCreateDepartment
	 */
	public String getFdCreateDepartment() {
		return this.fdCreateDepartment;
	}
	
	/**
	 * set the fdCreateDepartment - 编制部门
	 */
	public void setFdCreateDepartment(String fdCreateDepartment) {
		this.fdCreateDepartment = fdCreateDepartment;
	}
	
	/**
	 * get the fdCreatorId - 编制人ID
	 * @return the fdCreatorId
	 */
	public String getFdCreatorId() {
		return this.fdCreatorId;
	}
	
	/**
	 * set the fdCreatorId - 编制人ID
	 */
	public void setFdCreatorId(String fdCreatorId) {
		this.fdCreatorId = fdCreatorId;
	}
	
	/**
	 * get the fdCreator - 编制人
	 * @return the fdCreator
	 */
	public String getFdCreator() {
		return this.fdCreator;
	}
	
	/**
	 * set the fdCreator - 编制人
	 */
	public void setFdCreator(String fdCreator) {
		this.fdCreator = fdCreator;
	}
	
	/**
	 * get the fdAzdwId - 安装队伍ID
	 * @return the fdAzdwId
	 */
	public String getFdAzdwId() {
		return this.fdAzdwId;
	}
	
	/**
	 * set the fdAzdwId - 安装队伍ID
	 */
	public void setFdAzdwId(String fdAzdwId) {
		this.fdAzdwId = fdAzdwId;
	}
	
	/**
	 * get the fdCreattime 
	 * @return the fdCreattime
	 */
	public String getFdCreattime() {
		return this.fdCreattime;
	}
	
	/**
	 * set the fdCreattime 
	 */
	public void setFdCreattime(String fdCreattime) {
		this.fdCreattime = fdCreattime;
	}
	
	/**
	 * get the value from Map
	 */
	public void fromMap(Map map) {
	
		setFdKeyId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdKeyId")), fdKeyId));
		setFdDepartmentId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdDepartmentId")), fdDepartmentId));
		setFdDepartment(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdDepartment")), fdDepartment));
		setFdProfessionalplanId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdProfessionalplanId")), fdProfessionalplanId));
		setFdProduceplanId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdProduceplanId")), fdProduceplanId));
		setFdPlanYear(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdPlanYear")), fdPlanYear));
		setFdPlanMonth(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdPlanMonth")), fdPlanMonth));
		setFdRemarks(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdRemarks")), fdRemarks));
		setFdDd(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdDd")), fdDd));
		setFdGj(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdGj")), fdGj));
		setFdPscd(NumberUtils.toBigDecimal(StringUtils.toString(map.get("fdPscd")), fdPscd));
		setFdAzcd(NumberUtils.toBigDecimal(StringUtils.toString(map.get("fdAzcd")), fdAzcd));
		setFdGdlx(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdGdlx")), fdGdlx));
		setFdAzdw(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdAzdw")), fdAzdw));
		setFdGclx(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdGclx")), fdGclx));
		setFdCreateDepartmentId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdCreateDepartmentId")), fdCreateDepartmentId));
		setFdCreateDepartment(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdCreateDepartment")), fdCreateDepartment));
		setFdCreatorId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdCreatorId")), fdCreatorId));
		setFdCreator(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdCreator")), fdCreator));
		setFdAzdwId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdAzdwId")), fdAzdwId));
		setFdCreattime(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdCreattime")), fdCreattime));
	}
	
	/**
	 * set the value to Map
	 */
	public Map toMap() {
		
		Map map = new HashMap();
			map.put("fdKeyId",StringUtils.toString(fdKeyId, eiMetadata.getMeta("fdKeyId")));	
			map.put("fdDepartmentId",StringUtils.toString(fdDepartmentId, eiMetadata.getMeta("fdDepartmentId")));	
			map.put("fdDepartment",StringUtils.toString(fdDepartment, eiMetadata.getMeta("fdDepartment")));	
			map.put("fdProfessionalplanId",StringUtils.toString(fdProfessionalplanId, eiMetadata.getMeta("fdProfessionalplanId")));	
			map.put("fdProduceplanId",StringUtils.toString(fdProduceplanId, eiMetadata.getMeta("fdProduceplanId")));	
			map.put("fdPlanYear",StringUtils.toString(fdPlanYear, eiMetadata.getMeta("fdPlanYear")));	
			map.put("fdPlanMonth",StringUtils.toString(fdPlanMonth, eiMetadata.getMeta("fdPlanMonth")));	
			map.put("fdRemarks",StringUtils.toString(fdRemarks, eiMetadata.getMeta("fdRemarks")));	
			map.put("fdDd",StringUtils.toString(fdDd, eiMetadata.getMeta("fdDd")));	
			map.put("fdGj",StringUtils.toString(fdGj, eiMetadata.getMeta("fdGj")));	
			map.put("fdPscd",StringUtils.toString(fdPscd, eiMetadata.getMeta("fdPscd")));	
			map.put("fdAzcd",StringUtils.toString(fdAzcd, eiMetadata.getMeta("fdAzcd")));	
			map.put("fdGdlx",StringUtils.toString(fdGdlx, eiMetadata.getMeta("fdGdlx")));	
			map.put("fdAzdw",StringUtils.toString(fdAzdw, eiMetadata.getMeta("fdAzdw")));	
			map.put("fdGclx",StringUtils.toString(fdGclx, eiMetadata.getMeta("fdGclx")));	
			map.put("fdCreateDepartmentId",StringUtils.toString(fdCreateDepartmentId, eiMetadata.getMeta("fdCreateDepartmentId")));	
			map.put("fdCreateDepartment",StringUtils.toString(fdCreateDepartment, eiMetadata.getMeta("fdCreateDepartment")));	
			map.put("fdCreatorId",StringUtils.toString(fdCreatorId, eiMetadata.getMeta("fdCreatorId")));	
			map.put("fdCreator",StringUtils.toString(fdCreator, eiMetadata.getMeta("fdCreator")));	
			map.put("fdAzdwId",StringUtils.toString(fdAzdwId, eiMetadata.getMeta("fdAzdwId")));	
			map.put("fdCreattime",StringUtils.toString(fdCreattime, eiMetadata.getMeta("fdCreattime")));
			
		return map;
	
	}
}